<template>
  <router-view />
</template>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  background-color: #f7f8fc;
  color: #2c3e50;
}

#app {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 针对Element Plus的样式覆盖 */
.el-card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.el-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
}

.el-card__body {
  flex: 1;
  overflow: auto;
  height: calc(100% - 60px); /* 60px是卡片头部高度 */
  padding: 20px;
}

/* 按钮样式优化 */
.el-button {
  border-radius: 4px;
  font-weight: 500;
}

.el-button--primary {
  background-color: #409EFF;
}

.el-button--primary:hover {
  background-color: #66b1ff;
}

/* 表格样式优化 */
.el-table {
  border-radius: 8px;
}

.el-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 600;
}

.el-table__inner-wrapper {
  height: 100%;
}

.el-table__body-wrapper {
  overflow-y: auto;
}

/* 基础样式 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #409EFF;
  text-decoration: none;
}

.app-container {
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

/* 表单样式优化 */
.el-form-item__label {
  font-weight: 500;
}

/* 分页样式优化 */
.el-pagination {
  margin-top: 20px;
  text-align: right;
}
</style>
